﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.Common;

namespace GrainManage.Data.Access
{
    public abstract class AccessBase
    {
        public AccessBase(GrainManage.Data.Provider.ProviderBase provider) { this.Provider = provider; }

        protected GrainManage.Data.Provider.ProviderBase Provider { get; private set; }

        public abstract DataSet ExecuteQuery(string cmdText, params object[] paraValues);

        public abstract object ExecuteScalar(string cmdText, params object[] paraValues);

        public abstract int Execute(string cmdText, params object[] paraValues);

        public abstract DbDataReader ExecuteReader(string selectCmdText, params object[] paraValues);
    }
}
